import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)
import Home from "@/components/Home";
import Login from "@/components/Login";
import Register from "@/components/Register";
import Course from "@/components/Course";
import Detail from "@/components/Detail";
import Aliplayer from "@/components/Aliplayer";

export default new Router({
  mode: "history",
  routes: [
    {
      path: '/',
      name: "Home",
      component: Home,
    },
    {
      name:"Home",
      path: "/home",
      component:Home,
    },
    {
      name:"Login",
      path: "/user/login",
      component:Login,
    },
    {
      name:"Register",
      path: "/user/register",
      component:Register,
    },
    {
      name:"Course",
      path: "/user/course",
      component:Course,
    },
    {
      name:"Detail",
      path: "/course/:id",
      component:Detail,
    },
    {
      name:"Aliplayer",
      path: "/aliplayer",
      component:Aliplayer,
    },
  ]
})
